home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / INFO / DRIVPARM.ZIP / DRIVPARM.TXT
Text File  |  1988-05-28  |  5KB  |  96 lines

  1. Patching DOS 3.3 To Use DRIVPARM:
  2.  
  3. Drivparm can be used with IBM 3.3 and other 3.3 DOS'S! The
  4. following text explains why someone would want to use this and all
  5. of the pains I went thru to get it to work:
  6.  
  7. First of all I will explain why someone would want to do this. The
  8. only replacement for DRIVPARM is DRIVER.SYS which is external and
  9. has to be loaded. When DRIVER.SYS takes hold it assigns a device
  10. driver for whatever you are using for the next logical drive
  11. available. Example: A well loaded AT class machine with Drive A:
  12. being a 1.2 meg floppy, Drive B: is a 720k 3 & 1/2" drive, A hard
  13. disk which is split into 2 logical drives C: & D:, and Expanded
  14. memory of around a meg for a RAM disk (E:). DRIVER.SYS defined as
  15. DEVICE=DRIVER.SYS /D:1 /F:2 would place drive B: as drive E: or F:
  16. depending on the ram disk. ASSIGN.COM would take care of the drive
  17. calls but DRIVER.SYS and ASSIGN.COM eat memory!
  18.  
  19. Thats why DRIVPARM is better. It sets up a device definition for
  20. the drive you are installing and does it with less memory used
  21. because it is a internal CONFIG.SYS command that is not loaded.
  22. This patch I will descibe to you will make 1 change to the syntax
  23. of DRIVPARM. Here is old verses new after the patch:
  24.  
  25.                   OLD:   DRIVPARM=/D:n /F:n etc...
  26.                   NEW:   DRIVPARM=/DD:n /F:n etc...
  27.                        (Note the extra 'D')
  28.  
  29. 3.3 DOS was setup not to use DRIVPARM because most Computer Co's
  30. were upgrading there BIOS's in AT class machines to set up new
  31. devices in there CMOS Setup Memory. Anything that the SETUP
  32. routine in CMOS could not handle DRIVER.SYS could be loaded and
  33. used instead. After careful examination of the system files of IBM
  34. 3.3 DOS I found that DRIVPARM was still embedded in the code of
  35. the IBMBIO.COM hidden file that DOS uses to boot. Stranger yet I
  36. discovered that DOS did read a DRIVPARM=/ in a CONFIG.SYS file but
  37. would not read further than the '/'. I found a way to hook it back
  38. up to read the DRIVPARM command line without the CONFIG.SYS ERROR
  39. being displayed at bootup.
  40.  
  41. Well Lets Patch 3.3 IBMBIO.COM:
  42.  
  43. First and MOST IMPORTANT make a work disk by formatting a floppy
  44. with the /s command and also copy DEBUG.COM to it. Make sure your
  45. prompt is A>. Use your favorite utility to change IBMBIO.COM's 
  46. attributes so we can read-write to it. Type DEBUG IBMBIO.COM and 
  47. press ENTER.
  48.  
  49. At the - prompt type R and press ENTER
  50.  
  51. A table will be displayed. Note what CX=nnnn and write this 4 Hex
  52. digit down somewhere.
  53.  
  54. Now we look for the code to change. Type the following noting that
  55. nnnn is CX= you wrote down:    S 100 L nnnn 3C 2F 74 03
  56. Press ENTER and you should get a single line location for the
  57. list. If you get more than 1 line of location double check what
  58. you typed after S 100 L. You should see something similar as this:
  59.  
  60.                           ????:nnnn
  61.  
  62. The nnnn is what we looked for. So now type the following using nnnn:
  63.  
  64.                             U nnnn
  65.  
  66. You should get a assembler type listing of code starting at nnnn.
  67. Now look where the hexidecimal code 74 falls near the top of this list.
  68. We need to change this from 74 to EB. My IBM DOS 3.3 had this 74
  69. located at 4E9C. Other 3.3 DOS's will be differ from this. Lets refer
  70. to the location of 74 as xxxx.
  71. Now to change it to EB type the following with xxxx being the location
  72. of YOUR code 74:
  73.  
  74.                             E xxxx
  75.  
  76. It should display 74 and a space and wait for your input. Type EB and
  77. press ENTER.
  78. Now press W at the - prompt and it will save our patch to disk. Then
  79. type Q to quit debug.
  80.  
  81. Okay, you have made it this far. Now make a CONFIG.SYS file with a text
  82. editor of your choice or COPY CON CONFIG.SYS is just as fast. Use the
  83. syntax of DRIVPARM=/DD:d /F:n. DO NOT FORGET the EXTRA 'D' in the line
  84. you define. DRIVPARM follows the same syntax as DRIVER.SYS in your DOS
  85. manual with the exception that DEVICE= is not required in front of it
  86. and we now have to put 2 'D's in there with this patch.
  87.  
  88. Now save your CONFIG.SYS and try it out. Make sure your WORK DISK is in
  89. drive A: and reset the computer. If there was a mistake made one of 2
  90. things will happen. It wont boot period or you will get a ERROR IN
  91. CONFIG.SYS FILE message. If no mistakes were made you should get a date
  92. and time prompt. Then test it with the floppy for a while and make sure
  93. that it works with your device defined in DRIVPARM. Then if it is okay
  94. you can format your hard disk from this disk and run from there.
  95.  
  96.                                     From K. MACY